package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.core.exception.ParameterException;
import com.demo.domain.PracticalAchievementFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface FileService extends IService<PracticalAchievementFile> {
    public PracticalAchievementFile getFileByMd5(String md5);

    public boolean uploadFile(MultipartFile files[],long paId) throws ParameterException, IOException;

    public boolean downloadFile(Integer fid);

    public List<PracticalAchievementFile> findFileByPaId(long paid);

}
